Integrand size = 21, antiderivative size = 114 \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{a^{3/2} d}+\frac {5 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}} \]
[Out]
Time = 0.15 (sec) , antiderivative size = 114, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {2845, 3064, 2728, 212, 2852} \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=-\frac {2 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{a^{3/2} d}+\frac {5 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a \sin (c+d x)+a}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cos (c+d x)}{2 d (a \sin (c+d x)+a)^{3/2}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2845
Rule 2852
Rule 3064
Rubi steps \begin{align*} \text {integral}& = \frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}+\frac {\int \frac {\csc (c+d x) \left (2 a-\frac {1}{2} a \sin (c+d x)\right )}{\sqrt {a+a \sin (c+d x)}} \, dx}{2 a^2} \\ & = \frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}+\frac {\int \csc (c+d x) \sqrt {a+a \sin (c+d x)} \, dx}{a^2}-\frac {5 \int \frac {1}{\sqrt {a+a \sin (c+d x)}} \, dx}{4 a} \\ & = \frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}}-\frac {2 \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{a d}+\frac {5 \text {Subst}\left (\int \frac {1}{2 a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{2 a d} \\ & = -\frac {2 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{a^{3/2} d}+\frac {5 \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {2} \sqrt {a+a \sin (c+d x)}}\right )}{2 \sqrt {2} a^{3/2} d}+\frac {\cos (c+d x)}{2 d (a+a \sin (c+d x))^{3/2}} \\ \end{align*}
Result contains complex when optimal does not.
Time = 0.94 (sec) , antiderivative size = 223, normalized size of antiderivative = 1.96 \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\frac {\left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )-(5+5 i) (-1)^{3/4} \text {arctanh}\left (\left (\frac {1}{2}+\frac {i}{2}\right ) (-1)^{3/4} \left (-1+\tan \left (\frac {1}{4} (c+d x)\right )\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2-2 \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2+2 \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right ) \left (\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )^2\right )}{2 d (a (1+\sin (c+d x)))^{3/2}} \]
[In]
[Out]
Time = 0.74 (sec) , antiderivative size = 172, normalized size of antiderivative = 1.51
method | result | size |
default | \(\frac {\left (\sin \left (d x +c \right ) a^{3} \left (5 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right )-8 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (d x +c \right )}}{\sqrt {a}}\right )\right )+2 \sqrt {a -a \sin \left (d x +c \right )}\, a^{\frac {5}{2}}+5 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (d x +c \right )}\, \sqrt {2}}{2 \sqrt {a}}\right ) a^{3}-8 \,\operatorname {arctanh}\left (\frac {\sqrt {a -a \sin \left (d x +c \right )}}{\sqrt {a}}\right ) a^{3}\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}}{4 a^{\frac {9}{2}} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(172\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 453 vs. \(2 (93) = 186\).
Time = 0.29 (sec) , antiderivative size = 453, normalized size of antiderivative = 3.97 \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\frac {5 \, \sqrt {2} {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2\right )} \sqrt {a} \log \left (-\frac {a \cos \left (d x + c\right )^{2} + 2 \, \sqrt {2} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )} + 3 \, a \cos \left (d x + c\right ) - {\left (a \cos \left (d x + c\right ) - 2 \, a\right )} \sin \left (d x + c\right ) + 2 \, a}{\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2}\right ) + 4 \, {\left (\cos \left (d x + c\right )^{2} - {\left (\cos \left (d x + c\right ) + 2\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 2\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) - 4 \, \sqrt {a \sin \left (d x + c\right ) + a} {\left (\cos \left (d x + c\right ) - \sin \left (d x + c\right ) + 1\right )}}{8 \, {\left (a^{2} d \cos \left (d x + c\right )^{2} - a^{2} d \cos \left (d x + c\right ) - 2 \, a^{2} d - {\left (a^{2} d \cos \left (d x + c\right ) + 2 \, a^{2} d\right )} \sin \left (d x + c\right )\right )}} \]
[In]
[Out]
\[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\int \frac {\csc {\left (c + d x \right )}}{\left (a \left (\sin {\left (c + d x \right )} + 1\right )\right )^{\frac {3}{2}}}\, dx \]
[In]
[Out]
\[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\int { \frac {\csc \left (d x + c\right )}{{\left (a \sin \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
none
Time = 0.38 (sec) , antiderivative size = 138, normalized size of antiderivative = 1.21 \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\frac {\frac {4 \, \log \left ({\left | \frac {1}{2} \, \sqrt {2} + \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} - \frac {4 \, \log \left ({\left | -\frac {1}{2} \, \sqrt {2} + \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}\right )}{a^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} + \frac {\sqrt {2} \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{{\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )} a^{\frac {3}{2}} \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{4 \, d} \]
[In]
[Out]
Timed out. \[ \int \frac {\csc (c+d x)}{(a+a \sin (c+d x))^{3/2}} \, dx=\int \frac {1}{\sin \left (c+d\,x\right )\,{\left (a+a\,\sin \left (c+d\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]